package com.tw;

/**
 * Created by admin on 16/06/14.
 */
public class RightTriangle {
    private int nrows;

    RightTriangle() {
        nrows = 0;
    }

    RightTriangle(int n) {
        nrows = n;
    }

    public void generateTriangle() {
        int i;
        for (i = 0; i < nrows; i++) {
            Row.generateHztStarRow(i + 1);
            System.out.print("\n");
        }
    }
}
